﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using ENTITY;
using MODELS;

namespace CONTROLLER
{
    public class ctrls_Chuong
    {
        private MOD_chuong obj_Chuong;
        public ctrls_Chuong()
        {
            obj_Chuong = new MOD_chuong();
        }

        public DataTable GetData_SelectSTR(string strSQL)
        {
            return obj_Chuong.SelectByID(strSQL);
        }
        public DataTable GetData_SelectAll()
        {
            return obj_Chuong.GetData();
        }
        public int Chuong_Insert(EN_chuong obj_en)
        {
            return obj_Chuong.ExecuteSQL(obj_en);
        }

        public int Chuong_Update(EN_chuong obj_En)
        {
            return obj_Chuong.Update(obj_En);
        }

        public int Chuong_Delete(EN_chuong obj_en)
        {
            return obj_Chuong.Delete(obj_en); 
        }
    }
}
